package edu.langnan.xiaoli.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import edu.langnan.xiaoli.core.domain.StudentDO;
import edu.langnan.xiaoli.core.dto.StudentDTO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Date;

/**
 * @author cql
 */
@Mapper
public interface StudentMapper extends BaseMapper<StudentDO> {

    /**
     * 获取用户基本信息
     *
     * @param stuNo
     * @return
     */
    StudentDTO findStuInfo(String stuNo);

    /**
     * 更新信息
     *
     * @param stuId
     * @param avatar
     * @param openId
     * @param now
     */
    void updateInfo(@Param("stuId") Integer stuId, @Param("avatar") String avatar, @Param("openId") String openId, @Param("loginTime") Date now);
}
